package com.yjc.hire.feign;


import com.yjc.bo.SearchBO;
import com.yjc.hire.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * </p>
 *
 * @author jcyin
 * @since 2025/7/19
 * </p>
 */


@FeignClient("user-service")//通知调用远程服务的service
public interface UserMicroServiceFeign {

    @PostMapping("userinfo/getCountByCompanyId")
    public GraceJSONResult getCountByCompanyId(@RequestParam("companyId") String companyId);
    @PostMapping("userinfo/bindingHRToCompany")
    public GraceJSONResult bindingHRToCompany(@RequestParam("hrUserId") String hrUserId, @RequestParam("companyId") String companyId
            ,@RequestParam("realName") String realName);
    @PostMapping("userinfo/get")
    public GraceJSONResult get(@RequestParam("userId") String userId);
    @PostMapping("userinfo/changeUserToHr")
    public GraceJSONResult changeUserToHr(@RequestParam("userId") String userId);
    @PostMapping("assa/userinfo/list/get")
    public GraceJSONResult getList(@RequestBody SearchBO searchBO);
}
